<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:83:"D:\phpstudy_pro\WWW\aiyu\public/../application/manystore\view\campus_goods\add.html";i:1649906132;s:71:"D:\phpstudy_pro\WWW\aiyu\application\manystore\view\layout\default.html";i:1644633249;s:68:"D:\phpstudy_pro\WWW\aiyu\application\manystore\view\common\meta.html";i:1644633249;s:70:"D:\phpstudy_pro\WWW\aiyu\application\manystore\view\common\script.html";i:1644633249;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
<head>
    <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/manystore<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<?php if(\think\Config::get('fastadmin.adminskin')): ?>
<link href="/assets/css/skins/<?php echo \think\Config::get('fastadmin.adminskin'); ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
<?php endif; ?>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
<script src="/assets/js/html5shiv.js"></script>
<script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>

</head>

<body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
<div id="main" role="main">
    <div class="tab-content tab-addtabs">
        <div id="content">
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                    <section class="content-header hide">
                        <h1>
                            <?php echo __('Dashboard'); ?>
                            <small><?php echo __('Control panel'); ?></small>
                        </h1>
                    </section>
                    <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
                    <!-- RIBBON -->
                    <div id="ribbon">
                        <ol class="breadcrumb pull-left">
                            <?php if($auth->check('dashboard')): ?>
                            <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                            <?php endif; ?>
                        </ol>
                        <ol class="breadcrumb pull-right">
                            <?php foreach($breadcrumb as $vo): ?>
                            <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                            <?php endforeach; ?>
                        </ol>
                    </div>
                    <!-- END RIBBON -->
                    <?php endif; ?>
                    <div class="content">
                        <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Name'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Is_spec'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <?php if(is_array($specList) || $specList instanceof \think\Collection || $specList instanceof \think\Paginator): if( count($specList)==0 ) : echo "" ;else: foreach($specList as $key=>$vo): ?>
                <label for="row[is_spec]-<?php echo $key; ?>"><input id="row[is_spec]-<?php echo $key; ?>" name="row[is_spec]" type="radio" value="<?php echo $key; ?>" <?php if(in_array(($key), explode(',',"1"))): ?>checked<?php endif; ?> /> <?php echo $vo; ?></label>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
        </div>
    </div>

    <div class="form-group ">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Specs'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="panel panel-info">
                <div class="panel-body">
                    <div class="add_group">
                        <div class="add_group_btn">
                            <button type="button" class="btn btn-success"><?php echo __('Add Spec'); ?></button>
                        </div>
                        <div class="add_group_form hide" style="overflow: auto;">
                            <div style="padding-top: 10px;">
                                <label class="control-label"><?php echo __('Spec Name'); ?>：</label>
                                <input class="form-control add_group_name" type="text" placeholder="<?php echo __('Please enter spec name'); ?>" style="width: 200px">
                            </div>
                            <div style="padding-top: 10px;">
                                <label class="control-label"><?php echo __('Spec Value'); ?>：</label>
                                <input class="form-control add_group_value" type="text" placeholder="<?php echo __('Please enter spec value'); ?>" style="width: 200px">
                            </div>
                            <div style="padding-top: 10px;">
                                <button type="button" class="btn btn-success add_group_yes"><?php echo __('OK'); ?></button>
                                <button type="button" class="btn btn-success add_group_no"><?php echo __('Cancel'); ?></button>
                            </div>
                        </div>
                    </div>
                    <div class="group_list hide" style="border-top: 1px dashed #666;margin-top: 20px;padding-top: 20px;">
                        <table class="table table-bordered spec_table">
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Price'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Stock_warn'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-stock_warn" class="form-control" name="row[stock_warn]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><?php echo __('Course_id'); ?>:</label>
        <div class="col-xs-12 col-sm-8">
            <strong style="color:#FC9C6B;" id="choose_course_id"><?php echo __('Add Course_id'); ?></strong><br>
            <span id="couser_name"></span>
            <input id="c-course_id" class="form-control selecndex"  name="row[course_id]" type="text" value="" style="display: none;">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
            <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
        </div>
    </div>
</form>


<!-- 规格组html -->
<script type="text/html" id="group_html">
    <div class="group_item" style="margin-bottom: 10px;">
        <label><span class="group_name">{group_name}</span><i class="close">&times;</i></label>
        <div>
            <div class="input-group item_add_btn" style="width: 200px;">
                <input type="text" class="form-control">
                <span class="input-group-addon"><?php echo __('Add'); ?></span>
            </div>
        </div>
    </div>
</script>

<!-- 规格值html -->
<script type="text/html" id="item_html">
    <span class="spec_item input-group-addon pull-left" style="margin-right: 10px;border-color: #d2d6de;background-color: #fff;border: 1px solid #ccc;width: auto;position: relative;line-height: 31px;padding: 0 10px;"><span class="item_name">{item_name}</span><i class="del_item" style="position: absolute;top: -9px;width: 18px;height: 18px;line-height: 18px;text-align: center;background: #777;border: 1px solid;border-radius: 20px;color: #FFF;">&times;</i></span>
</script>

<!-- 表格公共单元格html -->
<script type="text/html" id="table_html">
    <!--<td>-->
        <!--<input type="text" class="form-control pull-left" placeholder="销售价" style="width: 100px;margin-right: 5px;" name="spec_data[{spec_name}][price]">-->
    <!--</td>-->
    <!--<td>-->
        <!--<input type="text" class="form-control pull-left" placeholder="划线价" style="width: 100px;margin-right: 5px;" name="spec_data[{spec_name}][cost_price]">-->
    <!--</td>-->
    <!--<td>-->
        <!--<input type="text" class="form-control pull-left" placeholder="库存" style="width: 100px;margin-right: 5px;" name="spec_data[{spec_name}][stock]">-->
    <!--</td>-->
    <td>
        <div class="input-group pull-left" style="display: inline-grid;margin-right: 5px;">
            <ul class="list-inline plupload-preview" id="p-image{i}"></ul>
            <input id="c-image{i}" class="form-control" size="50" name="spec_data[{spec_name}][spec_image]" type="hidden">
            <div class="input-group-addon no-border no-padding">
                <span><button type="button" id="plupload-image{i}" class="btn btn-danger plupload" data-input-id="c-image{i}" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image{i}"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
                <span><button type="button" id="fachoose-image{i}" class="btn btn-primary fachoose" data-input-id="c-image{i}" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
            </div>
        </div>
    </td>
</script>

<!-- 表格公共头html -->
<script type="text/html" class="table_header">
    <!--<th>销售价</th>-->
    <!--<th>划线价</th>-->
    <!--<th>库存</th>-->
    <!--<th>规格图片</th>-->
</script>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-manystore<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>

</body>
</html>
